import httpClient from "@/utils/request";
import type { OperationLogListParams, OperationLogListResult } from "./types";

/**
 * 获取操作日志列表
 * @param params 查询参数
 */
export function getOperationLogList(params: OperationLogListParams) {
  return httpClient.post<OperationLogListResult>(
    "/system/operation_log/list",
    params
  );
}

/**
 * 获取操作类型列表
 */
export function getOperationTypeList() {
  return httpClient.get<Record<number, string>>(
    "/system/operation_log/operation_type"
  );
}
